package com.example.as_sum.view;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.example.as_sum.R;


public class CustomProgressDialog extends ProgressDialog{
	private TextView tv_text;
    public CustomProgressDialog(Context context) {  
        super(context);  
    }  
    @Override
    protected void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_progress);
        tv_text=(TextView) this.findViewById(R.id.view_progress_text);
    }  
      
    public static CustomProgressDialog show(Context c){  
         CustomProgressDialog d = new CustomProgressDialog(c);  
        return d;  
    }  
    
    public void setText(String text){
    	if(tv_text!=null){
    		tv_text.setText(text);
    	}
    }
}  
